Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100 UI admin site maintenance notifications #148

Merged
merged 38 commits into from
May 15, 2024

Conversation

ameliav
Copy link
Contributor

@ameliav ameliav commented Apr 2, 2024

🗣 Description

The Admin site maintenance tool should allow administrators to manage site maintenance messages. And create a method to issue a site management page. These messages will be displayed to users during scheduled maintenance on the login page and/or when there are critical update a maintenance page will display.

💭 Motivation and context

This is valuable to streamline the maintenance processes for Crossfeed.

🧪 Testing

  • Create/Edit/Delete Messages: Administrators can create, edit, and delete maintenance messages.
  • Scheduled Messages: Ability to schedule messages for specific dates and times.
  • Display Messages: Messages are prominently displayed to users during maintenance periods.
  • Notification System: Optionally, provide a notification system for users to be informed about upcoming maintenance.

📷 Screenshots

No active or inactive notifications screen
image

Active notification and inactive notifications
image

Add New notification card and validation
image
image

Update notification pop up and validation
image
image

Login Screen with an Active notification
Screenshot 2024-05-10 at 1 21 11 PM

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced
    in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Revert dependencies to default branches.
  • Finalize version.

✅ Post-merge checklist

  • Create a release.

@ameliav ameliav linked an issue Apr 2, 2024 that may be closed by this pull request
5 tasks
@ameliav
Copy link
Contributor Author

ameliav commented Apr 5, 2024

@schmelz21 According to @rapidray12 any newly created endpoints are blocked until a particular team unblocks them. In order to not mess up staging, one possibility would be to revert the new /admin-tools endpoint to the use the existing /scans one until /admin-tools is available for use. What do you think?

@ameliav ameliav added the blocked This issue or pull request is awaiting the outcome of another issue or pull request label Apr 24, 2024
@ameliav
Copy link
Contributor Author

ameliav commented Apr 24, 2024

Blocked: implementation of stopping logins is blocked

@ameliav ameliav removed the blocked This issue or pull request is awaiting the outcome of another issue or pull request label May 10, 2024
@ameliav ameliav marked this pull request as ready for review May 10, 2024 21:14
Copy link
Collaborator

@schmelz21 schmelz21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@schmelz21 schmelz21 requested review from JCantu248 and schmelz21 May 13, 2024 15:43
Copy link
Collaborator

@JCantu248 JCantu248 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the duplicate imports error and the linter errors myself. Other than those small things, LGTM.

backend/src/models/notification.ts Outdated Show resolved Hide resolved
backend/src/models/connection.ts Outdated Show resolved Hide resolved
backend/src/models/connection.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@schmelz21 schmelz21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end-to-end UAT passed.

@schmelz21
Copy link
Collaborator

UAT results
Screenshot 2024-05-14 at 6 19 19 PM
Screenshot 2024-05-14 at 6 14 52 PM

@schmelz21 schmelz21 merged commit dec8c36 into develop May 15, 2024
22 of 23 checks passed
@schmelz21 schmelz21 deleted the 100-ui-admin-site-maintenance-notifications branch May 15, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI: Admin Site Maintenance Notifications
5 participants